import request from '@/utils/request'

export const getBuildAPI = (params) => {
  return request('/park/building', { params })
}

export const addBuildAPI = (data) => {
  return request({
    url: '/park/building',
    method: 'post',
    data: {
      name: data.name,
      floors: data.floors,
      area: data.area,
      propertyFeePrice: data.propertyFeePrice
    }})
}

export const getBuiDetailAPI = (id) => {
  return request({ url: 'park/building/' + id })
}

export const changBuiAPI = (data) => {
  return request({ url: '/park/building', method: 'put', data })
}

// 删除
export const delBuiAPI = (id) => {
  return request({
    url: '/park/building/' + id,
    method: 'delete'

  })
}

